Initializes a new instance of the class, specifying all its properties.
Syntax
'Declaration
Public Function New( _
ByVal As String, _
ByVal As Long, _
ByVal () As Byte, _
ByVal As Double, _
ByVal As Double _
)
'Usage
Dim securityPolicyUriString As String
Dim firstTokenId As Long
Dim keys() As Byte
Dim timeToNextKey As Double
Dim keyLifetime As Double
Dim instance As New SecurityKeysInfo(securityPolicyUriString, firstTokenId, keys, timeToNextKey, keyLifetime)
Parameters
- securityPolicyUriString
- The URI string for the set of algorithms and key lengths used to secure the messages.
The value of this parameter cannot be null
(Nothing
in Visual Basic).
- firstTokenId
- The security token Id of the first key in the array of keys.
- keys
- An array of keys, ordered by the sequence in which they are used.
The value of this parameter cannot be null
(Nothing
in Visual Basic).
The individual elements of the parameter value cannot be null
(Nothing
in Visual Basic).
- timeToNextKey
- The time before the current key is expected to expire. In milliseconds.
- keyLifetime
- The lifetime of a key. In milliseconds.
Exceptions
Exception | Description |
System.ArgumentOutOfRangeException |
The value of an argument is outside the allowable range of values as defined by the invoked method.
This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception. |
Requirements
Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows
See Also